home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 2009-03-03 | 65.9 KB | 1,659 lines
package { import com.plus9.mockups.MockupModel; import com.plus9.mockups.Mockups; import com.plus9.mockups.dialogs.NagDialog; import com.plus9.mockups.events.MockupModelEvent; import com.plus9.mockups.model.IStorageManager; import com.plus9.mockups.ui.AppBarMenus; import flash.accessibility.*; import flash.data.*; import flash.debugger.*; import flash.desktop.*; import flash.display.*; import flash.errors.*; import flash.events.*; import flash.external.*; import flash.filesystem.*; import flash.filters.*; import flash.geom.*; import flash.html.*; import flash.html.script.*; import flash.media.*; import flash.net.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.text.*; import flash.ui.*; import flash.utils.*; import flash.xml.*; import mx.binding.*; import mx.containers.Canvas; import mx.core.UIComponentDescriptor; import mx.core.WindowedApplication; import mx.core.mx_internal; import mx.events.FlexEvent; import mx.events.FlexNativeWindowBoundsEvent; import mx.events.PropertyChangeEvent; import mx.managers.DragManager; import mx.managers.PopUpManager; import mx.styles.*; use namespace mx_internal; public class MockupsAir extends WindowedApplication implements IBindingClient { private static var _watcherSetupUtil:IWatcherSetupUtil; mx_internal static var _MockupsAir_StylesInit_done:Boolean = false; private var _1541057692_mockupsBar:MockupsBar; private var _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastSelectedUpSkin_1956209268:Class; private var _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstOverSkin_895636888:Class; private var _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonUpSkin_944469021:Class; private var _embed__font_MockupsBoldFont_medium_normal_341357016:Class; private var _embed_css___skin_VScrollThumb_png_1095913499:Class; private var _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastDownSkin_284089736:Class; mx_internal var _bindingsByDestination:Object; protected var _snapshotName:String; private var _embed_css___skin_uparrow_png_504447974:Class; private var _embed_css___skin_menuRadioIcon_png_482829281:Class; private var _embed_css___skin_MockupsSkinAssets_swf_SearchBox_1716360600:Class; private var _embed_css___skin_MockupsSkinAssets_swf_HUDSearchBox_84570465:Class; private var _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstSelectedUpSkin_1318526294:Class; mx_internal var _watchers:Array; private var _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonSelectedUpSkin_131873192:Class; private var _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstDownSkin_2086033686:Class; private var _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastOverSkin_596406218:Class; private var _embed_css___skin_MockupsSkinAssets_swf_Button_SelectedSkin_2099491370:Class; private var _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonOverSkin_828974362:Class; private var _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastUpSkin_605336577:Class; protected var _updateSizeTimer:Timer; private var _embed_css___skin_downarrow_png_1464922515:Class; mx_internal var _bindingsBeginWithWord:Object; protected var _1585134695_version:String = "1.5.27 - 03/03/2009 04:50 (Air)"; private var _embed_css___skin_checkboxselectedup_png_316675045:Class; private var _710521297_mockups:Mockups; private var _embed__font_MockupsBaseFont_medium_normal_652023787:Class; private var _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonDownSkin_1913424292:Class; private var _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstUpSkin_2036655329:Class; mx_internal var _bindings:Array; protected var _nagTimer:Timer; private var _documentDescriptor_:UIComponentDescriptor; protected var _94969_sm:StorageManagerAir; protected var _nagDialog:NagDialog; private var _embed_css___skin_menucheck_png_1180737653:Class; public function MockupsAir() { _documentDescriptor_ = new UIComponentDescriptor({ "type":WindowedApplication, "propertiesFactory":function():Object { return {"childDescriptors":[new UIComponentDescriptor({ "type":Canvas, "propertiesFactory":function():Object { return { "percentWidth":100, "percentHeight":100, "styleName":"mockupsCanvas", "childDescriptors":[new UIComponentDescriptor({ "type":Mockups, "id":"_mockups", "stylesFactory":function():void { this.top = "0"; this.bottom = "32"; }, "propertiesFactory":function():Object { return { "percentWidth":100, "autoSave":false }; } }),new UIComponentDescriptor({ "type":MockupsBar, "id":"_mockupsBar", "stylesFactory":function():void { this.bottom = "5"; this.left = "10"; this.right = "10"; }, "propertiesFactory":function():Object { return {"height":22}; } })] }; } })]}; } }); _embed__font_MockupsBaseFont_medium_normal_652023787 = MockupsAir__embed__font_MockupsBaseFont_medium_normal_652023787; _embed__font_MockupsBoldFont_medium_normal_341357016 = MockupsAir__embed__font_MockupsBoldFont_medium_normal_341357016; _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonDownSkin_1913424292 = MockupsAir__embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonDownSkin_1913424292; _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonOverSkin_828974362 = MockupsAir__embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonOverSkin_828974362; _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonSelectedUpSkin_131873192 = MockupsAir__embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonSelectedUpSkin_131873192; _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonUpSkin_944469021 = MockupsAir__embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonUpSkin_944469021; _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstDownSkin_2086033686 = MockupsAir__embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstDownSkin_2086033686; _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstOverSkin_895636888 = MockupsAir__embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstOverSkin_895636888; _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstSelectedUpSkin_1318526294 = MockupsAir__embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstSelectedUpSkin_1318526294; _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstUpSkin_2036655329 = MockupsAir__embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstUpSkin_2036655329; _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastDownSkin_284089736 = MockupsAir__embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastDownSkin_284089736; _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastOverSkin_596406218 = MockupsAir__embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastOverSkin_596406218; _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastSelectedUpSkin_1956209268 = MockupsAir__embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastSelectedUpSkin_1956209268; _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastUpSkin_605336577 = MockupsAir__embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastUpSkin_605336577; _embed_css___skin_MockupsSkinAssets_swf_Button_SelectedSkin_2099491370 = MockupsAir__embed_css___skin_MockupsSkinAssets_swf_Button_SelectedSkin_2099491370; _embed_css___skin_MockupsSkinAssets_swf_HUDSearchBox_84570465 = MockupsAir__embed_css___skin_MockupsSkinAssets_swf_HUDSearchBox_84570465; _embed_css___skin_MockupsSkinAssets_swf_SearchBox_1716360600 = MockupsAir__embed_css___skin_MockupsSkinAssets_swf_SearchBox_1716360600; _embed_css___skin_VScrollThumb_png_1095913499 = MockupsAir__embed_css___skin_VScrollThumb_png_1095913499; _embed_css___skin_checkboxselectedup_png_316675045 = MockupsAir__embed_css___skin_checkboxselectedup_png_316675045; _embed_css___skin_downarrow_png_1464922515 = MockupsAir__embed_css___skin_downarrow_png_1464922515; _embed_css___skin_menuRadioIcon_png_482829281 = MockupsAir__embed_css___skin_menuRadioIcon_png_482829281; _embed_css___skin_menucheck_png_1180737653 = MockupsAir__embed_css___skin_menucheck_png_1180737653; _embed_css___skin_uparrow_png_504447974 = MockupsAir__embed_css___skin_uparrow_png_504447974; mx_internal::_bindings = []; mx_internal::_watchers = []; mx_internal::_bindingsByDestination = {}; mx_internal::_bindingsBeginWithWord = {}; super(); mx_internal::_document = this; if(!this.styleDeclaration) { this.styleDeclaration = new CSSStyleDeclaration(); } this.styleDeclaration.defaultFactory = function():void { this.backgroundGradientColors = [4737096,4737096]; this.backgroundColor = 4737096; }; mx_internal::_MockupsAir_StylesInit(); this.layout = "absolute"; this.horizontalScrollPolicy = "off"; this.verticalScrollPolicy = "off"; this.addEventListener("creationComplete",___MockupsAir_WindowedApplication1_creationComplete); this.addEventListener("addedToStage",___MockupsAir_WindowedApplication1_addedToStage); } public static function set watcherSetupUtil(param1:IWatcherSetupUtil) : void { MockupsAir._watcherSetupUtil = param1; } public function ___MockupsAir_WindowedApplication1_creationComplete(param1:FlexEvent) : void { onCreationComplete(); } private function _MockupsAir_bindingsSetup() : Array { var binding:Binding = null; var result:Array = []; binding = new Binding(this,function():String { var _loc1_:* = _version; return _loc1_ == undefined ? null : String(_loc1_); },function(param1:String):void { _mockups.build = param1; },"_mockups.build"); result[0] = binding; binding = new Binding(this,function():IStorageManager { return _sm; },function(param1:IStorageManager):void { _mockups.storageManager = param1; },"_mockups.storageManager"); result[1] = binding; return result; } protected function onFullScreen(param1:FullScreenEvent) : void { if(param1.fullScreen) { _mockups.setStyle("bottom",0); _mockupsBar.visible = false; } else { _mockups.setStyle("bottom",32); _mockupsBar.visible = true; } invalidateDisplayList(); validateDisplayList(); } protected function set _version(param1:String) : void { var _loc2_:Object = this._1585134695_version; if(_loc2_ !== param1) { this._1585134695_version = param1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"_version",_loc2_,param1)); } } mx_internal function _MockupsAir_StylesInit() : void { var style:CSSStyleDeclaration = null; var effects:Array = null; if(mx_internal::_MockupsAir_StylesInit_done) { return; } mx_internal::_MockupsAir_StylesInit_done = true; style = StyleManager.getStyleDeclaration(".buttonBarFirstTab"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".buttonBarFirstTab",style,false); } if(style.factory == null) { style.factory = function():void { this.selectedDownSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstSelectedUpSkin_1318526294; this.selectedUpSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstSelectedUpSkin_1318526294; this.selectedOverSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstSelectedUpSkin_1318526294; this.upSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstUpSkin_2036655329; this.downSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstDownSkin_2086033686; this.overSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstOverSkin_895636888; }; } style = StyleManager.getStyleDeclaration(".boldFont"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".boldFont",style,false); } if(style.factory == null) { style.factory = function():void { this.fontWeight = "normal"; this.fontFamily = "MockupsBoldFont"; }; } style = StyleManager.getStyleDeclaration(".HUDButton"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".HUDButton",style,false); } if(style.factory == null) { style.factory = function():void { this.borderColor = 16777215; this.fontWeight = "normal"; this.textRollOverColor = 0; this.fontSize = 9; this.fontFamily = "MockupsBaseFont"; this.fillAlphas = [1,1]; this.color = 16777215; this.selectedDownSkin = _embed_css___skin_MockupsSkinAssets_swf_Button_SelectedSkin_2099491370; this.cornerRadius = 6; this.fillColors = [4934475,4934475,4934475,4934475]; this.selectedUpSkin = _embed_css___skin_MockupsSkinAssets_swf_Button_SelectedSkin_2099491370; this.selectedOverSkin = _embed_css___skin_MockupsSkinAssets_swf_Button_SelectedSkin_2099491370; this.buttonStyleName = "hudToggleButtonBarMiddleButton"; this.lastButtonStyleName = "hudToggleButtonBarLastButton"; this.firstButtonStyleName = "hudToggleButtonBarFirstButton"; }; } style = StyleManager.getStyleDeclaration("Alert"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("Alert",style,false); } if(style.factory == null) { style.factory = function():void { this.borderColor = 16777215; this.modalTransparency = 0.7; this.color = 0; this.modalTransparencyBlur = 0; this.modalTransparencyColor = 0; this.borderAlpha = 1; this.backgroundColor = 15527148; }; } style = StyleManager.getStyleDeclaration("Application"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("Application",style,false); } if(style.factory == null) { style.factory = function():void { this.backgroundGradientColors = [4934475,4934475]; this.backgroundColor = 4934475; }; } style = StyleManager.getStyleDeclaration("Text"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("Text",style,false); } if(style.factory == null) { style.factory = function():void { this.fontSize = 11; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration("Button"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("Button",style,false); } if(style.factory == null) { style.factory = function():void { this.fontWeight = "normal"; this.fontFamily = "MockupsBoldFont"; }; } style = StyleManager.getStyleDeclaration("CheckBox"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("CheckBox",style,false); } if(style.factory == null) { style.factory = function():void { this.fontSize = 11; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration("MenuBarHaloBorder"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("MenuBarHaloBorder",style,false); } if(style.factory == null) { style.factory = function():void { this.fillAlphas = [1,1]; this.backgroundAlpha = 1; this.borderThickness = 1; this.borderStyle = "solid"; this.backgroundColor = 8376063; }; } style = StyleManager.getStyleDeclaration("InspectorsCanvas"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("InspectorsCanvas",style,false); } if(style.factory == null) { style.factory = function():void { this.paddingTop = 20; this.padding = 5; this.itemVpadding = 3; this.itemHpadding = 3; }; } style = StyleManager.getStyleDeclaration("TextInput"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("TextInput",style,false); } if(style.factory == null) { style.factory = function():void { this.fontSize = 11; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration(".tabBarFirstTab"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".tabBarFirstTab",style,false); } if(style.factory == null) { style.factory = function():void { this.selectionColor = 3368499; this.fillAlphas = [0,0,0,0]; this.color = 16777215; this.selectedDownSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstSelectedUpSkin_1318526294; this.selectedUpSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstSelectedUpSkin_1318526294; this.rollOverColor = 3368499; this.textRollOverColor = 16777215; this.selectedOverSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstSelectedUpSkin_1318526294; this.backgroundColor = 4934475; this.textSelectedColor = 16777215; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration(".toggleButtonBarButton"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".toggleButtonBarButton",style,false); } if(style.factory == null) { style.factory = function():void { this.fillAlphas = [1,1]; this.fillColors = [15198183,15198183]; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration("MyPopUpMenuButton"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("MyPopUpMenuButton",style,false); } if(style.factory == null) { style.factory = function():void { this.closeDuration = 0; this.openDuration = 0; }; } style = StyleManager.getStyleDeclaration(".HUDCheckbox"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".HUDCheckbox",style,false); } if(style.factory == null) { style.factory = function():void { this.borderColor = 16777215; this.color = 16777215; this.fillAlphas = [1,1]; this.fontWeight = "normal"; this.fillColors = [4934475,4934475]; this.textRollOverColor = 16777215; this.fontSize = 9; this.selectedUpIcon = _embed_css___skin_checkboxselectedup_png_316675045; this.textSelectedColor = 16777215; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration("ToolTip"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("ToolTip",style,false); } if(style.factory == null) { style.factory = function():void { this.fontSize = 11; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration(".mockupsBar"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".mockupsBar",style,false); } if(style.factory == null) { style.factory = function():void { this.color = 16777215; this.tabStyleName = "tabBarTab"; this.selectedTabTextStyleName = "tabBarSelectedTabText"; this.firstTabStyleName = "tabBarFirstTab"; this.fontFamily = "MockupsBaseFont"; this.lastTabStyleName = "tabBarLastTab"; }; } style = StyleManager.getStyleDeclaration(".buttonBarLastTab"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".buttonBarLastTab",style,false); } if(style.factory == null) { style.factory = function():void { this.selectedDownSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastSelectedUpSkin_1956209268; this.selectedUpSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastSelectedUpSkin_1956209268; this.selectedOverSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastSelectedUpSkin_1956209268; this.upSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastUpSkin_605336577; this.downSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastDownSkin_284089736; this.overSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastOverSkin_596406218; }; } style = StyleManager.getStyleDeclaration("MenuBar"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("MenuBar",style,false); } if(style.factory == null) { style.factory = function():void { this.borderColor = 4934475; this.fillAlphas = [1,1]; this.color = 16777215; this.fillColors = [4934475,4934475]; this.backgroundAlpha = 1; this.fontSize = 11; this.borderThickness = 1; this.borderStyle = "solid"; this.backgroundColor = 8376063; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration(".HUDColorPicker"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".HUDColorPicker",style,false); } if(style.factory == null) { style.factory = function():void { this.iconColor = 16777215; }; } style = StyleManager.getStyleDeclaration(".HUDSlider"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".HUDSlider",style,false); } if(style.factory == null) { style.factory = function():void { this.borderColor = 16777215; this.color = 16777215; this.fillAlphas = [1,1]; this.fontWeight = "normal"; this.fillColors = [4934475,4934475]; this.textRollOverColor = 16777215; this.fontSize = 9; this.textSelectedColor = 16777215; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration(".hudToggleButtonBarFirstButton"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".hudToggleButtonBarFirstButton",style,false); } if(style.factory == null) { style.factory = function():void { this.fillAlphas = [1,1]; this.selectedDownSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstSelectedUpSkin_1318526294; this.selectedUpSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstSelectedUpSkin_1318526294; this.fillColors = [4934475,4934475,4934475,4934475]; this.selectedOverSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_firstSelectedUpSkin_1318526294; }; } style = StyleManager.getStyleDeclaration("HScrollBar"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("HScrollBar",style,false); } if(style.factory == null) { style.factory = function():void { this.thumbOffset = 1; this.trackColors = [4934475,7171437]; this.downArrowSkin = _embed_css___skin_downarrow_png_1464922515; this.borderColor = 16777215; this.fillAlphas = [0.7,1]; this.fillColors = [4934475,4934475]; this.upArrowSkin = _embed_css___skin_uparrow_png_504447974; this.thumbIcon = _embed_css___skin_VScrollThumb_png_1095913499; }; } style = StyleManager.getStyleDeclaration(".hudToggleButtonBarMiddleButton"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".hudToggleButtonBarMiddleButton",style,false); } if(style.factory == null) { style.factory = function():void { this.fillAlphas = [1,1]; this.selectedDownSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonSelectedUpSkin_131873192; this.selectedUpSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonSelectedUpSkin_131873192; this.fillColors = [4934475,4934475,4934475,4934475]; this.selectedOverSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonSelectedUpSkin_131873192; }; } style = StyleManager.getStyleDeclaration(".inspectorLabel"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".inspectorLabel",style,false); } if(style.factory == null) { style.factory = function():void { this.textAlign = "right"; this.color = 16777215; this.fontWeight = "normal"; this.fontSize = 9; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration(".hudToggleButtonBarLastButton"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".hudToggleButtonBarLastButton",style,false); } if(style.factory == null) { style.factory = function():void { this.fillAlphas = [1,1]; this.selectedDownSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastSelectedUpSkin_1956209268; this.selectedUpSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastSelectedUpSkin_1956209268; this.fillColors = [4934475,4934475,4934475,4934475]; this.selectedOverSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastSelectedUpSkin_1956209268; }; } style = StyleManager.getStyleDeclaration(".buttonBarSelectedTabText"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".buttonBarSelectedTabText",style,false); } if(style.factory == null) { style.factory = function():void { this.color = 16777215; this.fontFamily = "MockupsBoldFont"; }; } style = StyleManager.getStyleDeclaration(".HUDSearchBox"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".HUDSearchBox",style,false); } if(style.factory == null) { style.factory = function():void { this.paddingTop = 1; this.color = 16777215; this.paddingLeft = 18; this.fontWeight = "normal"; this.fontSize = 9; this.borderSkin = _embed_css___skin_MockupsSkinAssets_swf_HUDSearchBox_84570465; this.borderStyle = "none"; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration(".escapeFullScreenWarningLabel"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".escapeFullScreenWarningLabel",style,false); } if(style.factory == null) { style.factory = function():void { this.color = 16777215; this.fontSize = 20; this.fontFamily = "MockupsBoldFont"; }; } style = StyleManager.getStyleDeclaration("List"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("List",style,false); } if(style.factory == null) { style.factory = function():void { this.color = 16777215; this.checkIcon = _embed_css___skin_menucheck_png_1180737653; this.textRollOverColor = 0; this.fontSize = 11; this.radioIcon = _embed_css___skin_menuRadioIcon_png_482829281; this.backgroundColor = 4934475; this.textSelectedColor = 0; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration(".buttonBarTab"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".buttonBarTab",style,false); } if(style.factory == null) { style.factory = function():void { this.selectedDownSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonSelectedUpSkin_131873192; this.selectedUpSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonSelectedUpSkin_131873192; this.selectedOverSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonSelectedUpSkin_131873192; this.upSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonUpSkin_944469021; this.downSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonDownSkin_1913424292; this.overSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonOverSkin_828974362; }; } style = StyleManager.getStyleDeclaration("LinkButton"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("LinkButton",style,false); } if(style.factory == null) { style.factory = function():void { this.paddingTop = 0; this.paddingLeft = 0; this.color = 204; this.fontWeight = "normal"; this.paddingRight = 0; this.textDecoration = "underline"; this.paddingBottom = 0; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration(".mockupsCanvas"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".mockupsCanvas",style,false); } if(style.factory == null) { style.factory = function():void { this.borderColor = 4934475; this.borderThickness = 0; this.borderStyle = "solid"; this.backgroundColor = 4934475; }; } style = StyleManager.getStyleDeclaration("Label"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("Label",style,false); } if(style.factory == null) { style.factory = function():void { this.fontSize = 11; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration(".myColorPickerSwatchPanel"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".myColorPickerSwatchPanel",style,false); } if(style.factory == null) { style.factory = function():void { this.columnCount = 8; this.swatchWidth = 20; this.previewHeight = 0; this.previewWidth = 0; this.swatchHeight = 20; }; } style = StyleManager.getStyleDeclaration("TabBar"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("TabBar",style,false); } if(style.factory == null) { style.factory = function():void { this.color = 16777215; this.tabStyleName = "tabBarTab"; this.fontSize = 11; this.selectedTabTextStyleName = "tabBarSelectedTabText"; this.firstTabStyleName = "tabBarFirstTab"; this.fontFamily = "MockupsBaseFont"; this.lastTabStyleName = "tabBarLastTab"; }; } style = StyleManager.getStyleDeclaration("TitleWindow"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("TitleWindow",style,false); } if(style.factory == null) { style.factory = function():void { this.modalTransparency = 0.7; this.titleStyleName = "boldFont"; this.modalTransparencyBlur = 0; this.modalTransparencyColor = 0; this.borderAlpha = 1; }; } style = StyleManager.getStyleDeclaration("ToggleButtonBar"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("ToggleButtonBar",style,false); } if(style.factory == null) { style.factory = function():void { this.selectedButtonTextStyleName = "toggleButtonBarSelectedButtonText"; this.fontSize = 11; this.lastButtonStyleName = "toggleButtonBarButton"; this.buttonStyleName = "toggleButtonBarButton"; this.firstButtonStyleName = "toggleButtonBarButton"; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration(".searchBox"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".searchBox",style,false); } if(style.factory == null) { style.factory = function():void { this.paddingTop = 1; this.paddingLeft = 18; this.borderSkin = _embed_css___skin_MockupsSkinAssets_swf_SearchBox_1716360600; this.borderStyle = "solid"; }; } style = StyleManager.getStyleDeclaration(".HUDLinkButton"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".HUDLinkButton",style,false); } if(style.factory == null) { style.factory = function():void { this.color = 16777215; this.fontWeight = "normal"; this.textRollOverColor = 0; this.textSelectedColor = 0; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration(".toggleButtonBarSelectedButtonText"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".toggleButtonBarSelectedButtonText",style,false); } if(style.factory == null) { style.factory = function():void { this.fontFamily = "MockupsBoldFont"; }; } style = StyleManager.getStyleDeclaration("ComboBox"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("ComboBox",style,false); } if(style.factory == null) { style.factory = function():void { this.fontWeight = "normal"; this.fontFamily = "MockupsBoldFont"; }; } style = StyleManager.getStyleDeclaration(".tabBarSelectedTabText"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".tabBarSelectedTabText",style,false); } if(style.factory == null) { style.factory = function():void { this.selectionColor = 3368499; this.color = 16777215; this.fontWeight = "normal"; this.rollOverColor = 3368499; this.textRollOverColor = 16777215; this.backgroundColor = 4934475; this.textSelectedColor = 16777215; this.fontFamily = "MockupsBoldFont"; }; } style = StyleManager.getStyleDeclaration(".tabBarLastTab"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".tabBarLastTab",style,false); } if(style.factory == null) { style.factory = function():void { this.selectionColor = 3368499; this.fillAlphas = [0,0,0,0]; this.color = 16777215; this.selectedDownSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastSelectedUpSkin_1956209268; this.selectedUpSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastSelectedUpSkin_1956209268; this.rollOverColor = 3368499; this.textRollOverColor = 16777215; this.selectedOverSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_lastSelectedUpSkin_1956209268; this.backgroundColor = 4934475; this.textSelectedColor = 16777215; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration(".dialogComboBox"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dialogComboBox",style,false); } if(style.factory == null) { style.factory = function():void { this.fontWeight = "normal"; this.dropdownStyleName = "dialogComboBoxDropdown"; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration(".UILibrary"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".UILibrary",style,false); } if(style.factory == null) { style.factory = function():void { this.paddingLeft = 0; this.color = 0; this.paddingRight = 0; this.borderStyle = "none"; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration(".dialogButtonBar"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dialogButtonBar",style,false); } if(style.factory == null) { style.factory = function():void { this.selectedButtonTextStyleName = "buttonBarSelectedTabText"; this.color = 0; this.fontWeight = "normal"; this.buttonStyleName = "buttonBarTab"; this.lastButtonStyleName = "buttonBarLastTab"; this.firstButtonStyleName = "buttonBarFirstTab"; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration(".libraryList"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".libraryList",style,false); } if(style.factory == null) { style.factory = function():void { this.paddingTop = -2; this.color = 16777215; this.paddingLeft = 0; this.paddingRight = 0; this.fontSize = 11; this.paddingBottom = 0; this.borderStyle = "none"; this.textSelectedColor = 0; this.fontFamily = "MockupsBaseFont"; this.backgroundColor = 4934475; }; } style = StyleManager.getStyleDeclaration(".HUDComboBox"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".HUDComboBox",style,false); } if(style.factory == null) { style.factory = function():void { this.borderColor = 16777215; this.color = 16777215; this.fillAlphas = [1,1,1,1]; this.cornerRadius = 6; this.fontWeight = "normal"; this.fillColors = [4934475,4934475]; this.textRollOverColor = 0; this.fontSize = 9; this.dropdownStyleName = "comboBoxDropdown"; this.closeDuration = 10; this.openDuration = 250; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration(".tabBarTab"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".tabBarTab",style,false); } if(style.factory == null) { style.factory = function():void { this.selectionColor = 3368499; this.fillAlphas = [0,0,0,0]; this.color = 16777215; this.selectedDownSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonSelectedUpSkin_131873192; this.selectedUpSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonSelectedUpSkin_131873192; this.rollOverColor = 3368499; this.textRollOverColor = 16777215; this.selectedOverSkin = _embed_css___skin_MockupsSkinAssets_swf_ButtonBar_buttonSelectedUpSkin_131873192; this.backgroundColor = 4934475; this.textSelectedColor = 16777215; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration("Menu"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("Menu",style,false); } if(style.factory == null) { style.factory = function():void { this.color = 16777215; this.checkIcon = _embed_css___skin_menucheck_png_1180737653; this.textRollOverColor = 0; this.fontSize = 11; this.radioIcon = _embed_css___skin_menuRadioIcon_png_482829281; this.backgroundColor = 4934475; this.openDuration = 0; this.textSelectedColor = 0; this.fontFamily = "MockupsBaseFont"; }; } style = StyleManager.getStyleDeclaration("VScrollBar"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("VScrollBar",style,false); } if(style.factory == null) { style.factory = function():void { this.thumbOffset = 1; this.trackColors = [4934475,7171437]; this.downArrowSkin = _embed_css___skin_downarrow_png_1464922515; this.borderColor = 16777215; this.fillAlphas = [0.7,1]; this.fillColors = [4934475,4934475]; this.upArrowSkin = _embed_css___skin_uparrow_png_504447974; this.thumbIcon = _embed_css___skin_VScrollThumb_png_1095913499; }; } style = StyleManager.getStyleDeclaration(".dialogComboBoxDropdown"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dialogComboBoxDropdown",style,false); } if(style.factory == null) { style.factory = function():void { this.color = 0; this.textRollOverColor = 0; this.backgroundColor = 16777215; this.textSelectedColor = 0; }; } style = StyleManager.getStyleDeclaration(".comboBoxDropdown"); if(!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".comboBoxDropdown",style,false); } if(style.factory == null) { style.factory = function():void { this.color = 16777215; this.textRollOverColor = 0; this.fontSize = 9; this.backgroundColor = 4934475; this.fontFamily = "MockupsBaseFont"; this.textSelectedColor = 0; }; } StyleManager.mx_internal::initProtoChainRoots(); } protected function onInvoke(param1:InvokeEvent) : void { var path:String = null; var data:String = null; var rememberWindowSize:Boolean = false; var configFile:File = null; var isLinux:Boolean = false; var fileStream:FileStream = null; var xmlConfigs:XML = null; var useCookies:Boolean = false; var fontFace:String = null; var windowSizeAndPosition:Object = null; var rect:Rectangle = null; var intersectedScreens:Array = null; var inputFileName:String = null; var registered:Boolean = false; var p_evt:InvokeEvent = param1; var args:Array = p_evt.arguments; var isCommandLine:Boolean = args.length > 0; var isFirstRun:Boolean = _sm == null; if(isFirstRun) { addEventListener(NativeDragEvent.NATIVE_DRAG_ENTER,onDragEnter); addEventListener(NativeDragEvent.NATIVE_DRAG_DROP,onDragDrop); nativeApplication.autoExit = false; rememberWindowSize = true; configFile = File.applicationStorageDirectory.resolvePath("BalsamiqMockups.cfg"); if(configFile.exists) { fileStream = new FileStream(); fileStream.open(configFile,FileMode.READ); data = fileStream.readUTFBytes(configFile.size); fileStream.close(); try { xmlConfigs = XML(data); if(XMLList(xmlConfigs.useCookies).length() > 0) { useCookies = xmlConfigs.useCookies[0].toString().toLowerCase() == "true"; _mockups.model.cookieManager.useCookies = useCookies; } if(XMLList(xmlConfigs.fontFace).length() > 0) { fontFace = xmlConfigs.fontFace[0].toString(); _mockups.model.fontFace = fontFace; } if(XMLList(xmlConfigs.rememberWindowSize).length() > 0) { rememberWindowSize = xmlConfigs.rememberWindowSize[0].toString().toLowerCase() == "true"; } } catch(e:Error) { } } _mockups.host = MockupModel.HOST_DESKTOP; _mockups.cookieManager = new LocalDBManager(); _sm = new StorageManagerAir(_mockups,!isCommandLine,_version); _sm.addEventListener("activateChange",onActivateChange); isLinux = Capabilities.os.indexOf("Linux") != -1; _mockups.menus = !isLinux ? new AppBarMenusAir() : new AppBarMenusAirLinux(); _mockups.model.importImageDialogClass = ImportImageDialogAir; _mockupsBar.mockups = _mockups; _mockupsBar.fileManager = _sm; _nagTimer = new Timer(5 * 60 * 1000,1); _nagTimer.addEventListener(TimerEvent.TIMER,onNagTimer); if(!_sm.activated) { _nagTimer.start(); } if(rememberWindowSize) { windowSizeAndPosition = _mockups.model.cookieManager.getProperty("windowSizeAndPosition",{ "x":0, "y":0, "w":Screen.mainScreen.bounds.width * 0.75, "h":Screen.mainScreen.bounds.height * 0.75 }); rect = new Rectangle(windowSizeAndPosition.x,windowSizeAndPosition.y,windowSizeAndPosition.w,windowSizeAndPosition.h); intersectedScreens = Screen.getScreensForRectangle(rect); if(intersectedScreens.length == 0) { windowSizeAndPosition.x = 0; windowSizeAndPosition.y = 0; _mockups.model.cookieManager.setProperty("windowSizeAndPosition",windowSizeAndPosition); } nativeApplication.openedWindows[0].x = windowSizeAndPosition.x; nativeApplication.openedWindows[0].y = windowSizeAndPosition.y; width = windowSizeAndPosition.w; height = windowSizeAndPosition.h; addEventListener(FlexNativeWindowBoundsEvent.WINDOW_MOVE,onWindowMovedOrSized); addEventListener(FlexNativeWindowBoundsEvent.WINDOW_RESIZE,onWindowMovedOrSized); _updateSizeTimer = new Timer(500,1); _updateSizeTimer.addEventListener(TimerEvent.TIMER_COMPLETE,onUpdateSizeTimerComplete); } visible = !isCommandLine; if(args.length == 0) { _sm.log("Did you know you could use Balsamiq Mockups from the command line?"); _sm.log("Usage:"); _sm.log("\tBalsamiq Mockups register <organizationName> <serialKey>"); _sm.log("\t\t- registers this Mockups copy with the provided serial key info"); _sm.log("\tBalsamiq Mockups export <inputXMLFilePath> <outputImageFilePath>"); _sm.log("\t\t- exports the provided bmml or xml file to a PNG file"); _sm.log("\tBalsamiq Mockups unregister"); _sm.log("\t\t- un-registers Balsamiq Mockups from this computer"); _sm.log("\tBalsamiq Mockups version"); _sm.log("\t\t- prints the current version of Mockups for Desktop"); _sm.log(""); _sm.log("Examples:"); _sm.log("\tBalsamiq Mockups register yourCompanyName 123abc"); _sm.log("\tBalsamiq Mockups c:\\foo\\bar\\myMockup.bmml c:\\myimages\\myMockup.png"); _sm.log("\tBalsamiq Mockups unregister"); _sm.log("\tBalsamiq Mockups version"); return; } if(isCommandLine) { switch(String(args[0]).toLowerCase()) { case "register": if(_sm.activated) { _sm.log("Balsamiq Mockups has already been registered on this machine."); nativeApplication.exit(1); return; } if(args.length != 3) { _sm.log("usage: Balsamiq Mockups register <organizationName> <serialKey>"); nativeApplication.exit(2); return; } registered = _sm.registerWithKey(String(args[1]),String(args[2])); if(registered) { _sm.log("Balsamiq Mockups registration successful."); nativeApplication.exit(); } else { _sm.log("Problem registering, please try again."); _sm.log("usage: Balsamiq Mockups register <organizationName> <serialKey>"); nativeApplication.exit(3); } break; case "unregister": _sm.deactivate(); _sm.log("Balsamiq Mockups successfully unregistered from this computer."); nativeApplication.exit(); break; case "export": if(!_sm.activated) { _sm.log("You need to activate first with the following command:"); _sm.log("usage: Balsamiq Mockups register <organizationName> <serialKey>"); nativeApplication.exit(4); return; } if(args.length != 3) { _sm.log("usage: Balsamiq Mockups export <inputXMLFilePath> <outputImageFilePath>"); nativeApplication.exit(2); return; } _mockups.model.addEventListener(MockupModelEvent.VIEW_IS_READY,doSnapshot); inputFileName = String(args[1]); _snapshotName = String(args[2]); _sm.log("loading " + inputFileName + " from disk"); data = _sm.loadFileFromDisk(inputFileName); if(data == null || data == "") { _sm.log("invalid input file: " + inputFileName); nativeApplication.exit(5); return; } return; break; case "version": _sm.log("Mockups for Desktop version " + _version); nativeApplication.exit(); break; default: visible = true; loadPaths(args); } } } else { loadPaths(args); } } protected function onCreationComplete() : void { removeEventListener(FlexEvent.CREATION_COMPLETE,onCreationComplete); nativeApplication.addEventListener(InvokeEvent.INVOKE,onInvoke); nativeWindow.addEventListener(Event.CLOSING,onClosing); } public function onDragDrop(param1:NativeDragEvent) : void { var _loc4_:File = null; var _loc2_:Array = param1.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT) as Array; var _loc3_:Array = new Array(); for each(_loc4_ in _loc2_) { _loc3_.push(_loc4_.nativePath); } loadPaths(_loc3_); } protected function onNagClose(param1:Event) : void { _nagDialog.removeEventListener("nagClose",onNagClose); _nagTimer.start(); } [Bindable(event="propertyChange")] public function get _mockups() : Mockups { return this._710521297_mockups; } protected function onActivateChange(param1:Event) : void { if(_sm.activated) { _nagTimer.stop(); } } public function set _mockups(param1:Mockups) : void { var _loc2_:Object = this._710521297_mockups; if(_loc2_ !== param1) { this._710521297_mockups = param1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"_mockups",_loc2_,param1)); } } [Bindable(event="propertyChange")] public function get _mockupsBar() : MockupsBar { return this._1541057692_mockupsBar; } public function ___MockupsAir_WindowedApplication1_addedToStage(param1:Event) : void { onAddedToStage(); } protected function doSnapshot(param1:MockupModelEvent) : void { _mockups.model.removeEventListener(MockupModelEvent.VIEW_IS_READY,doSnapshot); _sm.snapshot(_snapshotName); nativeApplication.exit(); } protected function onUpdateSizeTimerComplete(param1:TimerEvent) : void { if(stage.displayState != StageDisplayState.NORMAL) { return; } _mockups.model.cookieManager.setProperty("windowSizeAndPosition",{ "x":nativeApplication.openedWindows[0].x, "y":nativeApplication.openedWindows[0].y, "w":Math.max(width,880), "h":Math.max(height,680) }); } protected function onWindowMovedOrSized(param1:FlexNativeWindowBoundsEvent) : void { if(stage.displayState != StageDisplayState.NORMAL) { return; } _updateSizeTimer.reset(); _updateSizeTimer.start(); } override public function initialize() : void { var bindings:Array; var watchers:Array; var i:uint; var target:MockupsAir = null; var watcherSetupUtilClass:Object = null; mx_internal::setDocumentDescriptor(_documentDescriptor_); bindings = _MockupsAir_bindingsSetup(); watchers = []; target = this; if(_watcherSetupUtil == null) { watcherSetupUtilClass = getDefinitionByName("_MockupsAirWatcherSetupUtil"); watcherSetupUtilClass["init"](null); } _watcherSetupUtil.setup(this,function(param1:String):* { return target[param1]; },bindings,watchers); i = 0; while(i < bindings.length) { Binding(bindings[i]).execute(); i++; } mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } [Bindable(event="propertyChange")] protected function get _version() : String { return this._1585134695_version; } private function _MockupsAir_bindingExprs() : void { var _loc1_:* = undefined; _loc1_ = _version; _loc1_ = _sm; } protected function onNagTimer(param1:TimerEvent) : void { _nagTimer.stop(); if(Boolean(_nagDialog) && Boolean(_nagDialog.parent)) { return; } _nagDialog = NagDialog(PopUpManager.createPopUp(this,NagDialog,true)); _nagDialog.message = "Thank you for spending the last five minutes trying out Balsamiq Mockups.\n\nWe hope you will like enough to consider switching to our paid version."; _nagDialog.linkMessage = "Buy Balsamiq Mockups now!"; _nagDialog.url = "http://www.balsamiq.com/products/mockups/desktop#buy"; _nagDialog.addEventListener("nagClose",onNagClose); _nagDialog.init(_mockups.inputManager); PopUpManager.centerPopUp(_nagDialog); } protected function onAddedToStage() : void { removeEventListener(Event.ADDED_TO_STAGE,onAddedToStage); stage.addEventListener(FullScreenEvent.FULL_SCREEN,onFullScreen); } protected function loadPaths(param1:Array) : void { var _loc4_:String = null; var _loc2_:uint = param1.length; var _loc3_:uint = 0; while(_loc3_ < _loc2_) { _loc4_ = param1[_loc3_]; if(_loc3_ == _loc2_ - 1) { _sm.loadFileFromDisk(_loc4_); } else { _sm.loadDataIntoMemory(_loc4_); } _loc3_++; } } public function set _mockupsBar(param1:MockupsBar) : void { var _loc2_:Object = this._1541057692_mockupsBar; if(_loc2_ !== param1) { this._1541057692_mockupsBar = param1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"_mockupsBar",_loc2_,param1)); } } protected function onClosing(param1:Event) : void { if(_sm) { _sm.quit(); } } public function onDragEnter(param1:NativeDragEvent) : void { if(param1.clipboard.formats.length > 0) { DragManager.acceptDragDrop(this); } } protected function set _sm(param1:StorageManagerAir) : void { var _loc2_:Object = this._94969_sm; if(_loc2_ !== param1) { this._94969_sm = param1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"_sm",_loc2_,param1)); } } [Bindable(event="propertyChange")] protected function get _sm() : StorageManagerAir { return this._94969_sm; } } }